<template>
  <ContentWrap>
    <IFrame :src="src" />
  </ContentWrap>
</template>
<script lang="ts" setup>

const loading = ref(true) // 是否加载中
const src = ref(import.meta.env.VITE_BASE_URL + '/doc.html#/home') // Knife4j UI
// const src = ref(import.meta.env.VITE_BASE_URL + '/swagger-ui') // Swagger UI

/** 初始化 */
onMounted(async () => {
  try {
    src.value = 'http://192.168.2.42:9098/app/dashboards#/view/bdb33ee0-3a8e-11eb-96b2-e765737b7534?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A60000)%2Ctime%3A(from%3Anow-3d%2Cto%3Anow))&show-query-input=true&show-time-filter=true'
  } finally {
    loading.value = false
  }
})
</script>
